package com.songcha.sakura.bean

import com.songcha.library_network.bean.BaseBean
import org.json.JSONArray
import org.json.JSONObject
import java.io.Serializable

data class ComicScheduleListBean(val `data`:MutableList<MutableList<ComicListBean.ComicBean>>) : BaseBean(),Serializable {

    override fun toString(): String {
        val d = JSONObject()
        val dd=JSONArray()
        val arr=JSONArray()


        if(data.size==7){
            for(i in 0 until 7){
                val item=data[i]
                val weekObject=JSONObject()
                val weekArray=JSONArray()
                for(j in 0 until item.size){
                    val comic=item[j]
                    val comicObject=JSONObject()
                    comicObject.put("title",comic.title)
                    comicObject.put("href",comic.href)
                    comicObject.put("update",comic.update)
                    weekArray.put(comicObject)
                }
                weekObject.put("week",weekArray)
                arr.put(weekObject)

                dd.put(weekObject)

            }


        }

        d.put("data",dd)
        return d.toString()
    }


}